import Http from '../http';

//获取OverallAuth系统树形菜单
export const getMenuTreeData = async function () {
   return await Http.get('/api/SysMenu/GetMenuTreeList');
}

//获取菜单列表
export const getAllMenuTreeList = async function () {
   return await Http.get('/api/SysMenu/GetAllMenuTreeList');
}

//获取公司下系统的菜单
export const getCorporationSystemMenuList = async function (params: { corporationKey: string, systemKey: string }) {
   return await Http.get('/api/SysMenu/GetCorporationSystemMenuList', params);
}

//获取公司、系统、菜单关系数据
export const getAllMenuList = function () {
    return Http.get('/api/SysMenu/GetAllMenuList')
}